projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67a0a66
)
Fix double close.
author
robertl
<robertl>
Thu, 19 Sep 2002 17:08:26 +0000
(17:08 +0000)
committer
robertl
<robertl>
Thu, 19 Sep 2002 17:08:26 +0000
(17:08 +0000)
magproto.c
patch
|
blob
|
history
diff --git
a/magproto.c
b/magproto.c
index 9bad44098d8e46b96b1af0bb6c62ddad5fd127e6..c30b0174dab173407541b15611e2a47c86e62e5d 100644
(file)
--- a/
magproto.c
+++ b/
magproto.c
@@
-541,7
+541,9
@@
mag_deinit(void)
{
mag_handoff();
termdeinit();
- fclose(magfile_in);
+ if(magfile_in)
+ fclose(magfile_in);
+ magfile_in = NULL;
}
#if 0
/*